package com.dbl.oms.platform.persistence.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.dbl.oms.common.model.SuperEntity;

/**
 * <p>
 * 
 * </p>
 *
 * @author Ladd
 * @since 2017-12-15
 */
@TableName("sys_group_privilege_mapping")
public class SysGroupPrivilegeMapping extends SuperEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 用户分组id
     */
	@TableField("group_id")
	private Integer groupId;
    /**
     * 权限id
     */
	@TableField("privilege_id")
	private Integer privilegeId;
    /**
     * 权限编码
     */
	@TableField("privilege_code")
	private String privilegeCode;
    /**
     * 创建人id
     */
	@TableField("create_by")
	private String createBy;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Date createTime;


	public Integer getId() {
		return id;
	}

	public SysGroupPrivilegeMapping setId(Integer id) {
		this.id = id;
		return this;
	}

	public Integer getGroupId() {
		return groupId;
	}

	public SysGroupPrivilegeMapping setGroupId(Integer groupId) {
		this.groupId = groupId;
		return this;
	}

	public Integer getPrivilegeId() {
		return privilegeId;
	}

	public SysGroupPrivilegeMapping setPrivilegeId(Integer privilegeId) {
		this.privilegeId = privilegeId;
		return this;
	}

	public String getPrivilegeCode() {
		return privilegeCode;
	}

	public SysGroupPrivilegeMapping setPrivilegeCode(String privilegeCode) {
		this.privilegeCode = privilegeCode;
		return this;
	}

	public String getCreateBy() {
		return createBy;
	}

	public SysGroupPrivilegeMapping setCreateBy(String createBy) {
		this.createBy = createBy;
		return this;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public SysGroupPrivilegeMapping setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}

	public static final String ID = "id";

	public static final String GROUP_ID = "group_id";

	public static final String PRIVILEGE_ID = "privilege_id";

	public static final String PRIVILEGE_CODE = "privilege_code";

	public static final String CREATE_BY = "create_by";

	public static final String CREATE_TIME = "create_time";

	@Override
	public String toString() {
		return "SysGroupPrivilegeMapping{" +
			", id=" + id +
			", groupId=" + groupId +
			", privilegeId=" + privilegeId +
			", privilegeCode=" + privilegeCode +
			", createBy=" + createBy +
			", createTime=" + createTime +
			"}";
	}
}
